<template>
  <!-- <div class="number">
    <button :disabled="lock" @click="click()">抓</button>
    <a-button type="primary" danger ghost>Danger</a-button>
    <button @click="click(1)">+</button>
  </div> -->
  <router-view></router-view>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import { Store } from "@/store/index"
import api from "@/api/index"


const store = Store()
const number = ref<number>(1)
const lock = ref(false)

const click = async () => {
  console.log(api.UserApi.getuser())
  // const resut = await axios({
  //   url: "https://google.com",
  //   method: "Get",
  //   params: {}
  // })
  // console.log(resut)
  // return new Promise(function(res,red){
  //   window.location.href = "https://google.com"
  // }).then((res)=>{
  //   console.log("1111")
  // })
}

</script>

<style scoped>
button {
  border: none;
  outline: none;
}

.number {
  display: flex;
}

.num {
  text-align: center;
}
</style>
